package com.easydisk.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.easydisk.user.model.entity.User;
import com.easydisk.user.model.req.RegisterReq;


public interface UserService extends IService<User> {


    void register(RegisterReq registerReq);

    void sendEmailCode(String email);

    String checkEmailCode(String email, String code);

    void resetPasswordByEmail(String email, String token, String newPassword);

    User getByEmail(String email);

    String login(String username, String password);
}
